package com.ytc.service;

import com.ytc.model.Bookshelf;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-provider")
public interface BookshelfService {

    //张阔：加入书架
    @RequestMapping("addShelf")
    void addShelf(@RequestParam("uId") Integer uId, @RequestParam("blId") Integer blId);

    //张阔：查询书架是否存在该书籍
    @RequestMapping("queryShelfByUidAndBid")
    Bookshelf queryShelfByUidAndBid(@RequestParam("uId") Integer uId, @RequestParam("blId") Integer blId);
}
